
package com.ebupt.migu.music.global.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ebupt.migu.globalpopup.entity.ApprovedMemo;
import com.ebupt.migu.music.common.entity.ResultObject;
import com.ebupt.migu.music.global.service.IApprovedMemoService;

/**
 * 审核记录表 控制器
 *
 * @author wangzhu
 * @since 2021-11-26
 */
@RestController
@RequestMapping("/global/approvedmemo")
public class ApprovedMemoController {

    @Autowired
    private IApprovedMemoService approvedMemoService;

    /**
     * 新增 审核记录表
     */
    @PostMapping("/save")
    public ResultObject save(@Valid @RequestBody ApprovedMemo approvedMemo) {
        return approvedMemoService.saveApprovedMemo(approvedMemo);
    }

}
